package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.NewsAuthDto;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.pojos.WmNews;

public interface WmNewsService extends IService<WmNews> {


    ResponseResult findList(WmNewsPageReqDto dto);

    /**
     * 新闻发布
     * @param dto dto
     * @return ResponseResult
     */
    ResponseResult submit(WmNewsDto dto) throws Exception;

    ResponseResult upOrDown(WmNewsDto dto);

    ResponseResult newsList(NewsAuthDto dto);

    ResponseResult newsText(Integer newsId);

    ResponseResult authFail(NewsAuthDto dto);

    ResponseResult authPass(NewsAuthDto dto);
}
